package com.zzl.bonds.ticket.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 联系人票关系表
 *
 * @author gull
 * @date 2022-07-06 13:43:53
 */
@Data
@TableName("t_ticket_book_relation")
@ApidocModel
@SuppressWarnings("javadoc")
public class TicketBookRelationEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "通讯录id")
    private String addressBookId;
    @ApidocModelProperty(description = "业务数据表主键")
    private String businessId;
    @ApidocModelProperty(description = "业务类型，1凭证开具，2凭证签收，3转让，4转让签收，5融资")
    private Integer businessType;
    @ApidocModelProperty(description = "消息发送类型：1短信，2邮件，3 短信和邮件")
    private Integer messageType;
    @ApidocModelProperty(description = "是否已发送，0 未发送 1已发送 2 不发送")
    private Integer sendStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "修改时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @ApidocModelProperty(description = "创建人")
    private Integer creatorId;
    @ApidocModelProperty(description = "修改人")
    private Integer updaterId;
    @ApidocModelProperty(description = "备注")
    private String remark;
    @ApidocModelProperty(description = "1 表示删除，0 表示未删除")
    @TableField(value = "is_deleted")
    @TableLogic(value = "0", delval = "1")
    private Integer deletedStatus;
    @ApidocModelProperty(description = "企业id/通讯录的 企业id")
    private String enterpriseId;

}
